/*
 * @Author: lvye
 * @Description:
 * @Date: 2023-06-30 14:27:40
 * @LastEditTime: 2023-08-11 14:49:53
 * @FilePath: \vue3-ts\src\components\index.ts
 */
import { App } from "vue"
import NavMenu from "./NavMenu/NavMenu.vue"
import NavHeader from "./NavHeader/NavHeader.vue"
import PageSearch from "./page-search/page-search.vue"
import PageContent from "./page-content/page-content.vue"
import PageModal from "./page-modal/page-modal.vue"
const components = [NavMenu, NavHeader, PageSearch, PageContent, PageModal]
export default {
  install: (app: App) => {
    // 注册项目内
    for (const component of components) {
      app.component(component.name, component)
    }
  }
}
